import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '../views/login.vue'

Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: 'login',
		component: LoginView
	},
	{
		path: '/home',
		name: 'home',
		component: () => import('@/views/HomeView.vue')
	},
	{
		path: '/mine',
		name: 'mine',
		component: () => import('@/views/mine/index.vue')
	}, {
		path: "/wb",
		name: "维保",
		component: () => import("@/views/server/wb.vue")
	}, {
		path: "/ls",
		name: "历史",
		component: () => import("@/views/server/ls.vue")
	}, {
		path:"/serve",
		name:"服务",
		component: () => import("@/views/server/server.vue")
	}
]

const router = new VueRouter({
	routes
})

export default router
